package com.wyz.service;

import java.util.List;

import com.wyz.dao.MovieDao;
import com.wyz.entity.Movie;
import com.wyz.entity.Review;
import com.wyz.entity.Type;

import my.db.QueryHelper;

public class MovieService {
	
	private MovieDao dao = new MovieDao();
	
	/**
	 * 增加电影
	 * */
	public void save(Movie movie) {
		dao.save(movie);
	}
	
	/**
	 * 删除
	 * */
	public void remove(Long id) {
		dao.remove(id);
	}
	
	public List<Movie> findAll(){
		return dao.findAll();
	}
	public List<Movie> findByType(Long typeId){
		return dao.findByType(typeId);
	}
	public Movie findById(Long id) {
		return dao.findById(id);
	}

}
